package com.inspector.app.di.network.api

import androidx.annotation.Keep
import com.example.commen.net.easyHttp.server.ReleaseServer
import com.hjq.http.config.IRequestApi


/**
 * 密码登录
 */
class UserInfoApi : ReleaseServer(), IRequestApi {
    override fun getApi(): String {
        return "/admin/api/user-msg"
    }

    @Keep
    data class UserInfo(
        var cancellationTime: String = "",
        var companyId: String = "",
        var companyName: String = "",
        var deleteTime: String = "",
        var departmentId: String = "",
        var email: String = "",
        var equipmentImei: String = "",
        var headPic: String = "",
        var headUrl: String = "",
        var id: Int = 0,
        var isDelete: Int = 0,
        var modifyTime: String = "",
        var phoneNum: String = "",
        var position: String = "",
        var realname: String = "",
        var registerTime: String = "",
        var remark: String = "",
        var sex: Int = 0,
        var status: Int = 0,
        var type: Int = 0,
        var userBelongCompanyStatus: Int = 0,
        var username: String
    )

    fun initUserinfo(): UserInfo {
        return UserInfo(
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            0,
            0,
            "",
            "",
            "",
            "", "",
            "",
            0,
            0,
            0, 0,
            "",
        )
    }
}